<?php
// +----------------------------------------------------------------------
// | UserModel.class.php - MyPT
// +----------------------------------------------------------------------
// | Copyleft (c) 2010 By Asxzy All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Asxzy <asxzy@163.com>
// +----------------------------------------------------------------------
class UserModel extends Model{
	protected $_validate = array (
		array('username','require','请输入用户名'),
		array('password','require','请输入密码'),
		array('repassword','password','确认密码不正确',1,'confirm'),
		array('email','require','请输入Email'),
		array('email','email','邮箱格式不正确'),
		array('verify','require','验证码必须！'),
		array('username','','用户名已经存在,请重新选择',1,'unique',3),
		array('nickname','','昵称已经存在,请重新选择',1,'unique',3),
		array('email','','Email已经存在,请不要重复注册',1,'unique',3),
	);
	protected $_auto = array(
		array('added','get_time',1,'function'),
		array('password','md5',3,'function'),
		array('passkey','md5',1,'function'),
	);
}
?>